package com.leo.imp;

import com.leo.abs.OperateException;
import com.leo.abs.RUnaryOpr;

public class NotOperator extends RUnaryOpr {

	public NotOperator(){
		token = "!";
	}
	@Override
	public double operate(double a) throws OperateException {
		return a <= 0 ? 1 : 0;
	}

}
